<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<title>编辑文章</title>
	<meta charset="utf-8">
	<th:block th:include="include :: header('commonFiles')" />
	<link rel="stylesheet" th:href="@{/plugins/editormd/css/editormd.css}" />
	<style type="text/css">
		html,body, .myform{
			width: 100%;
			height: 100%;
		}
		.header{
			padding: 10px 0px;
		}
	</style>
</head>
<body>
	
	<form class="layui-form myform">
		<input type="hidden" id="id" name="id" th:value="${entity.id}"/>
		<!--<input type="hidden" id="createDate" name="createDate" th:value="${#dates.format(entity.createDate, 'yyyy-MM-dd HH:mm:ss')}"/>  -->
		<input type="hidden" id="articleStatus" name="articleStatus" th:value="${entity.articleStatus}"/>
		<input type="hidden" id="articleContent" th:value="${entity.articleContent}"/>
		<input type="hidden" id="articleContentHtml" th:value="${entity.articleContentHtml}"/>
		
		<div class="layui-row header">
			<input type="text" name="articleName" th:value="${entity.articleName}" required  lay-verify="articleName" placeholder="请输入文章名称" autocomplete="off" class="layui-input">
		</div>
		
		<div id="articleContent-editor">
		    <!-- <textarea style="display:none;" id="articleContent" name="articleContent" th:text="${entity.articleContent}"></textarea> -->
		    <textarea style="display:none;" name="articleContent"></textarea>
		</div>
		
		<div class="layui-row">
			<button class="layui-btn" lay-submit lay-filter="myForm">保存</button>
			<button class="layui-btn layui-btn-primary" onclick="toBack()">返回</button>
		</div>
	</form>
	
<script type="text/javascript" charset="utf-8" th:src="@{/plugins/editormd/editormd.js}"></script>
<script type="text/javascript" charset="utf-8" th:inline="none" th:src="@{/js/article/addPage.js}"></script>

</body>
</html>